//
//  ServicefiltersExtraModel.m
//  FreeTravel
//
//  Created by 徐康 on 16/9/9.
//  Copyright © 2016年 KX. All rights reserved.
//

#import "ServicefiltersExtraModel.h"

@implementation ServicefiltersExtraModel
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    NSMutableArray *arr=  [NSMutableArray array];
    if ([key isEqualToString:@"arrange"]) {
        self.arrange = [value integerValue];
    }if ([key isEqualToString:@"limit"]) {
        self.limit = [value integerValue];
    }if ([key isEqualToString:@"list"]) {
        for (NSDictionary *dic in value) {
            ServicefiltersExtraListModel *model = [ServicefiltersExtraListModel modelWithDic:dic];
            [arr addObject:model];
        }
        self.list = arr;
    }
}
@end
